package com.teamwhole.modules.sys.entity;

import com.teamwhole.core.persistence.BaseEntity;

/**
 * 菜单Entity
 * @author ZGJ
 *
 */
public class Menu extends BaseEntity<Menu>{

	private static final long serialVersionUID = 1L;
	
	private String     name;       // 名称
	private String     href;       // 链接
	private String     target; 	   // 目标(mainFrame、_blank、_self、_parent、_top)
	private String     icon; 	   // 图标
	private String     isShow; 	   // 是否在菜单中显示（1：显示;0：不显示）
	private String     isButton;   // 是否为按钮
	private Integer    sort;       // 排序
	private String     permission; // 权限标识
	private String     parentId;
	//private Menu       parent;     // 父级菜单
	//private List<Menu> children = new ArrayList<Menu>();
	private String     userId;
	
	
	public Menu() {
        super();
    }

    public Menu(String id) {
        super(id);
    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIsButton() {
        return isButton;
    }

    public void setIsButton(String isButton) {
        this.isButton = isButton;
    }

    public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

}
